import http from "../axios";
//----------------- 零星物料派单
// 数据请求
export const getController = () => http({
    url: `/api3/material/selectTheOddBill`,
    method: 'get',

})
//新增
export const addController = (data = {
    materialsId: '',
    supId: '',
    theOddBill: ''
}) => http({
    url: '/api3/material/addTheOddBill',
    method: 'post',
    data: [],
})
// 删除
export const deleteController = (tobId: number) => http({
    url: `/api3/material/deleteTheOddBill/${tobId}`,
    method: 'post',

})
// 编辑
export const updateController = (data = {
    materialsId: '',
    supId: '',
    theOddBill: '',
    tobCount: '',
    tobId: '',
    tobLnspector: '',
    tobLocation: '',
    tobManufacturersMlot: '',
    tobMaterialsLpn: '',
    tobNumber: '',
    tobOrdernumber: '',
    tobReceNum: '',
    tobUseTime: ''
}) => http({
    url: '/api3/material/updateTheOddBill',
    method: 'post',
    data: [],
})

// -----------------------WMS待派单
// 数据请求
export const getWms = () => http({
    url: `/api3/material/selectWmsWaitingList`,
    method: 'get',

})
// 物料异常恢复
export const updateWms = (wwlLpn: number) => http({
    url: `/api3/material/AbnormalRecovery/${wwlLpn}`,
    method: 'post',

})
// 派单
export const updateWms1 = (data = {
    materialsId: '',
    supId: '',
    userId: '',
    wmsWaitingList: ''
}) => http({
    url: `/api3/material/AbnormalRecovery`,
    method: 'post',
    data: []

})
// ------------------------我的检验
// 数据请求
export const getMaterialMaterial = () => http({
    url: `/api3/material/selectMyTest`,
    method: 'get',

})



